package com.topvision.gsj.launcher.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * 時間工具類
* <p>Title: DateUtil</p>
* <p>Description: </p>
* <p>Company: topvision</p>
* @author    jackGu
* @date       2016-4-28
 */
public class DateUtil {
	public static SimpleDateFormat ymdFormat = new SimpleDateFormat("HH:mm",Locale.CHINA);
	
	/**
	 * 返回年月日時分秒字符串
	* <p>Title: getYMD</p>
	* <p>Description: </p>
	* @param date
	* @return
	 */
	public static String getYMDHMS(Date date){
		if(date == null){
			return ymdFormat.format(new Date());
		}
		return ymdFormat.format(date);
	}
	
}
